home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / oops / r3listv.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  2.7 KB  |  109 lines

  1.  
  2. // JavaScript wrapper for r3listv.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_LISTVIEW_H = 1;
  7. include("oops/r3osgdgt.js")
  8. include("oops/r3mxgad.js")
  9.  
  10.  
  11. var R3CLID_LISTVIEW = 34;
  12.  
  13.  
  14.  
  15.  
  16. // Returns: Boolean, TRUE if there is a selected item, FALSE otherwise
  17.  
  18. R3GLVM_GETSELECTEDPOS = 34000;
  19.  
  20. function mR3GLVM_GETSELECTEDPOS() {
  21.   return   DoA(this.r3obj, 34000, 0, R3TID_INTEGER, 0);
  22. }
  23.  
  24. // Description: returns the index of the item at a given position.
  25. // Returns: Integer, index of the item or -1 if no item is at a given position
  26.  
  27. R3GLVM_HIT = 34001;
  28.  
  29. function mR3GLVM_HIT() {
  30.   return   DoA(this.r3obj, 34001, 0, R3TID_INTEGER, 0);
  31. }
  32.  
  33.  
  34.  
  35.  
  36. R3GLVA_List = 34500;
  37. function SetR3GLVA_List(value) {
  38.   R3Set(this.r3obj, R3GLVA_List, value, R3TID_LIST, R3TNF_ARRAY); 
  39. }
  40.  
  41. function GetR3GLVA_List() {
  42.   return R3Get(this.r3obj, R3GLVA_List, R3TID_LIST, R3TNF_ARRAY); 
  43. }
  44.  
  45. R3GLVA_Top = 34501;
  46. function SetR3GLVA_Top(value) {
  47.   R3Set(this.r3obj, R3GLVA_Top, value, R3TID_INTEGER, 0); 
  48. }
  49.  
  50. function GetR3GLVA_Top() {
  51.   return R3Get(this.r3obj, R3GLVA_Top, R3TID_INTEGER, 0); 
  52. }
  53.  
  54. R3GLVA_SelectedString = 34503;
  55. function GetR3GLVA_SelectedString() {
  56.   return R3Get(this.r3obj, R3GLVA_SelectedString, R3TID_STRING, 0); 
  57. }
  58.  
  59. R3GLVA_ObjectOffset = 34504;
  60. function SetR3GLVA_ObjectOffset(value) {
  61.   R3Set(this.r3obj, R3GLVA_ObjectOffset, value, R3TID_INTEGER, 0); 
  62. }
  63.  
  64. function GetR3GLVA_ObjectOffset() {
  65.   return R3Get(this.r3obj, R3GLVA_ObjectOffset, R3TID_INTEGER, 0); 
  66. }
  67.  
  68. R3GLVA_Icon = 34505;
  69. function SetR3GLVA_Icon(value) {
  70.   R3Set(this.r3obj, R3GLVA_Icon, value, R3TID_OBJECT, 0); 
  71. }
  72.  
  73. function GetR3GLVA_Icon() {
  74.   return R3ToJS(R3Get(this.r3obj, R3GLVA_Icon, R3TID_OBJECT, 0)); 
  75. }
  76.  
  77. R3GLVA_ReportAllSelections = 34506;
  78. function SetR3GLVA_ReportAllSelections(value) {
  79.   R3Set(this.r3obj, R3GLVA_ReportAllSelections, value, R3TID_BOOLEAN, 0); 
  80. }
  81.  
  82. var R3GLVOO_NOICON = -1;
  83. var R3GLVOO_OBJECT = -2;
  84.  
  85.  
  86. function r3Listview () { 
  87.    this.base = r3God;
  88.    if(arguments.length) {
  89.       this.base(R3CLID_LISTVIEW, arguments);
  90.    }
  91.    // Methods
  92.    this.GETSELECTEDPOS=mR3GLVM_GETSELECTEDPOS;
  93.    this.HIT=mR3GLVM_HIT;
  94.  
  95.    // Attributes
  96.    this.GetList=GetR3GLVA_List;
  97.    this.SetList=SetR3GLVA_List;
  98.    this.GetTop=GetR3GLVA_Top;
  99.    this.SetTop=SetR3GLVA_Top;
  100.    this.GetSelectedString=GetR3GLVA_SelectedString;
  101.    this.GetObjectOffset=GetR3GLVA_ObjectOffset;
  102.    this.SetObjectOffset=SetR3GLVA_ObjectOffset;
  103.    this.GetIcon=GetR3GLVA_Icon;
  104.    this.SetIcon=SetR3GLVA_Icon;
  105.    this.SetReportAllSelections=SetR3GLVA_ReportAllSelections;
  106. }
  107.  
  108. r3Listview.prototype=new r3Osgadget;
  109. // r3listv.h_H